package com.wtwd.wtwddevice.mapper;

import com.wtwd.wtwddevice.model.entity.Frequency;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2024-05-21
 */
@Mapper
public interface FrequencyMapper extends BaseMapper<Frequency> {

    int insertOrUpdate(Frequency frequency);

    int updateState(@Param("deviceId") Long deviceId, @Param("type") int type, @Param("state") int state);
}
